package com.acquisition.param.dto;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Map;

/**
 * modbus rtu 参数
 * 对应MonitorFactorParam
 *
 * @author wuqiwei
 * @date 2020/10/15
 */
public class ModbusRtuConfig {

	@JSONField(name="type")
	private String type;

	@JSONField(name="mn")
	private String mn;

	@JSONField(name="interval")
	private int interval;

	@JSONField(name="deviceType")
	private int deviceType;

	@JSONField(name="pa")
	private String pa;

	@JSONField(name="airK")
	private String airK;

	@JSONField(name="speedK")
	private String speedK;

	@JSONField(name="area")
	private String area;

	@JSONField(name="factorConfigMap")
	private Map<String, SingleMonitorFactorConfig> factorConfigMap;

	public ModbusRtuConfig() {
		super();
	}

	public ModbusRtuConfig(String type, String mn, int interval, int deviceType, String pa, String airK,
						   String speedK, String area, Map<String, SingleMonitorFactorConfig> factorConfigMap) {
		super();
		this.type = type;
		this.mn = mn;
		this.interval = interval;
		this.deviceType = deviceType;
		this.pa = pa;
		this.airK = airK;
		this.speedK = speedK;
		this.area = area;
		this.factorConfigMap = factorConfigMap;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getMn() {
		return mn;
	}

	public void setMn(String mn) {
		this.mn = mn;
	}

	public int getInterval() {
		return interval;
	}

	public void setInterval(int interval) {
		this.interval = interval;
	}

	public int getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(int deviceType) {
		this.deviceType = deviceType;
	}

	public String getPa() {
		return pa;
	}

	public void setPa(String pa) {
		this.pa = pa;
	}

	public String getAirK() {
		return airK;
	}

	public void setAirK(String airK) {
		this.airK = airK;
	}

	public String getSpeedK() {
		return speedK;
	}

	public void setSpeedK(String speedK) {
		this.speedK = speedK;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public Map<String, SingleMonitorFactorConfig> getFactorConfigMap() {
		return factorConfigMap;
	}

	public void setFactorConfigMap(Map<String, SingleMonitorFactorConfig> factorConfigMap) {
		this.factorConfigMap = factorConfigMap;
	}

	@Override
	public String toString() {
		return "ModbusRtuConfig [type=" + type + ", mn=" + mn + ", interval=" + interval + ", deviceType="
				+ deviceType + ", pa=" + pa + ", airK=" + airK + ", speedK=" + speedK + ", area=" + area + "]";
	}

}
